package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MonitoringData {
    @JsonProperty("data_id")
    private Long dataId;
    
    @JsonProperty("site_id")
    private Integer siteId;
    
    private BigDecimal pm25;
    private BigDecimal pm10;
    private BigDecimal temperature;
    private BigDecimal humidity;
    private BigDecimal formaldehyde;
    
    @JsonProperty("recorded_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordedAt;
} 